home *** CD-ROM | disk | FTP | other *** search
/ HTBasic 9.3 / HTBasic 9.3.iso / 93win / data1.cab / DLL_Toolkit / Source / HTBButton / ButtonDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-03-02  |  2.0 KB  |  76 lines

  1. #if !defined(AFX_BUTTONDLG_H__D6D63ECC_3EA4_11D3_A911_00104B9A4FD0__INCLUDED_)
  2. #define AFX_BUTTONDLG_H__D6D63ECC_3EA4_11D3_A911_00104B9A4FD0__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // ButtonDlg.h : header file
  8. //    High Tech BASIC, Copyright (C) TransEra Corp 1999, All Rights Reserved.
  9.  
  10. #define MAXBUTTON 10
  11. #define MAXOPTION 3
  12.  
  13. enum OPTION
  14. {    modal = 1,
  15.     variable,
  16.     signal
  17. };
  18.  
  19. /////////////////////////////////////////////////////////////////////////////
  20. // ButtonDlg dialog
  21.  
  22. class ButtonDlg : public CDialog
  23. {
  24. // Construction
  25. public:
  26.     //short * m_pPress;                            // pointer to Basic memory for showing user input
  27.     //CString m_sBtnText[MAXBUTTON];                // button text
  28.     //CString m_sStaticText;                        // static control text
  29.     //CString m_sTitle;                            // window title text
  30.     //short m_option;                                // type option
  31.     //long m_width;                                // button width
  32.     //short m_BtnCount;                            // number of buttons to display
  33.     ButtonDlg(CWnd* pParent = NULL);            // standard constructor
  34.  
  35. // Dialog Data
  36.     //{{AFX_DATA(ButtonDlg)
  37.     enum { IDD = IDD_BTNDLG };
  38.     CButton    m_btn[10];
  39.     //}}AFX_DATA
  40.  
  41.  
  42. // Overrides
  43.     // ClassWizard generated virtual function overrides
  44.     //{{AFX_VIRTUAL(ButtonDlg)
  45.     protected:
  46.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  47.     //}}AFX_VIRTUAL
  48.  
  49. // Implementation
  50. protected:
  51.  
  52.     // Generated message map functions
  53.     //{{AFX_MSG(ButtonDlg)
  54.     virtual BOOL OnInitDialog();
  55.     afx_msg void OnButton1();
  56.     afx_msg void OnButton10();
  57.     afx_msg void OnButton2();
  58.     afx_msg void OnButton3();
  59.     afx_msg void OnButton4();
  60.     afx_msg void OnButton5();
  61.     afx_msg void OnButton6();
  62.     afx_msg void OnButton7();
  63.     afx_msg void OnButton8();
  64.     afx_msg void OnButton9();
  65.     afx_msg void OnClose();
  66.     //}}AFX_MSG
  67.     DECLARE_MESSAGE_MAP()
  68. private:
  69.     void UserAct(short select);
  70. };
  71.  
  72. //{{AFX_INSERT_LOCATION}}
  73. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  74.  
  75. #endif // !defined(AFX_BUTTONDLG_H__D6D63ECC_3EA4_11D3_A911_00104B9A4FD0__INCLUDED_)
  76.